package com.xnyzc.lhy.order.mapper.driver.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.order.entity.cms.driver.DriverVehicleInfo;
import com.xnyzc.lhy.order.entity.driver.wallet.OaDWallet;
import com.xnyzc.lhy.order.entity.result.cms.driver.CmsOaDriverWalletListRes;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 司机钱包表 Mapper 接口
 * </p>
 *
 * @author zhuyubin
 * @since 2019-08-12
 */
public interface OaDWalletMapper extends BaseMapper<OaDWallet> {

    /**
     * 查询司机钱包信息
     * @param iPage 分页
     * @param tag 用户来源
     * @param driverIdList 可查看司机
     * @param officeIdList 可查看部门
     * @param officeId 查询部门
     * @param officeIds 机构id们模糊查询
     * @return
     */
    IPage<CmsOaDriverWalletListRes> getDriverWalletList(IPage<CmsOaDriverWalletListRes> iPage,
                                                        @Param("tag") String tag,
                                                        @Param("driverIdList") List<Long> driverIdList,
                                                        @Param("officeIdList") List<Long> officeIdList,
                                                        @Param("driver_phone") String driverPhone,
                                                        @Param("driver_name") String driverName,
                                                        @Param("office_id") Long officeId,
                                                        @Param("office_ids") List<Long> officeIds);


}
